home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmChooseDirectory
- BorderStyle = 3 'Fixed Dialog
- Caption = "Choose Directory"
- ClientHeight = 3195
- ClientLeft = 2760
- ClientTop = 3750
- ClientWidth = 7560
- Icon = "ChooseDirectory.frx":0000
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 3195
- ScaleWidth = 7560
- ShowInTaskbar = 0 'False
- Begin VB.DriveListBox drvCur
- Height = 315
- Left = 4320
- TabIndex = 5
- Top = 2160
- Width = 3015
- End
- Begin VB.DirListBox dirCur
- Height = 2115
- Left = 360
- TabIndex = 2
- Top = 360
- Width = 3735
- End
- Begin VB.CommandButton CancelButton
- Caption = "Cancel"
- Height = 375
- Left = 6240
- TabIndex = 1
- Top = 840
- Width = 1215
- End
- Begin VB.CommandButton OKButton
- Caption = "OK"
- Height = 375
- Left = 6240
- TabIndex = 0
- Top = 360
- Width = 1215
- End
- Begin VB.Label lblDirectory
- Height = 375
- Left = 1920
- TabIndex = 4
- Top = 2760
- Width = 5295
- End
- Begin VB.Label Label1
- Caption = "Current Directory:"
- Height = 255
- Left = 360
- TabIndex = 3
- Top = 2760
- Width = 1335
- End
- Attribute VB_Name = "frmChooseDirectory"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- 'frmChooseDirectory.frm
- '--------------------------------------------------------------------------
- '<Purpose>
- '<Revision>
- ' $Revision: $
- '<Mod Log>
- ' $Log: $
- '--------------------------------------------------------------------------
- Private mMainDirectory As String
- '--------------------------------------------------------------------------
- '<Purpose>
- '<Syntax>
- '<Assumptions>
- '<Returns>
- '<Author>
- ' HBW
- '--------------------------------------------------------------------------
- Private Sub dirCur_Change()
- mMainDirectory = dirCur.List(dirCur.ListIndex)
- lblDirectory = dirCur.List(dirCur.ListIndex)
- End Sub
- '--------------------------------------------------------------------------
- '<Purpose>
- '<Syntax>
- '<Assumptions>
- '<Returns>
- '<Author>
- ' HBW
- '--------------------------------------------------------------------------
- Private Sub drvCur_Change()
- dirCur.Path = drvCur.Drive
- End Sub
- '--------------------------------------------------------------------------
- '<Purpose>
- '<Syntax>
- '<Assumptions>
- '<Returns>
- '<Author>
- ' HBW
- '--------------------------------------------------------------------------
- Private Sub Form_Load()
- If Len(mMainDirectory) = 0 Then
- mMainDirectory = dirCur.List(dirCur.ListIndex)
- lblDirectory = dirCur.List(dirCur.ListIndex)
- End If
- End Sub
- '--------------------------------------------------------------------------
- '<Purpose>
- '<Syntax>
- '<Assumptions>
- '<Returns>
- '<Author>
- ' HBW
- '--------------------------------------------------------------------------
- Public Property Get CurrentDirectory() As String
- CurrentDirectory = mMainDirectory
- End Property
- '--------------------------------------------------------------------------
- '<Purpose>
- '<Syntax>
- '<Assumptions>
- '<Returns>
- '<Author>
- ' HBW
- '--------------------------------------------------------------------------
- Public Property Let CurrentDirectory(ByVal NewDirectory As String)
- mMainDirectory = NewDirectory
- End Property
- '--------------------------------------------------------------------------
- '<Purpose>
- '<Syntax>
- '<Assumptions>
- '<Returns>
- '<Author>
- ' HBW
- '--------------------------------------------------------------------------
- Private Sub OKButton_Click()
- Me.Hide
- End Sub
-